//
//  UIFontExtensions.swift
//  MYGrow
//
//  Created by 小火科技 on 2024/2/23.
//

import UIKit

extension UIFont {
    static func regular(_ x: CGFloat) -> UIFont {
        UIFont.systemFont(ofSize: x, weight: .regular)
    }
    
    static func medium(_ x: CGFloat) -> UIFont {
        UIFont.systemFont(ofSize: x, weight: .medium)
    }
    
    static func semibold(_ x: CGFloat) -> UIFont {
        UIFont.systemFont(ofSize: x, weight: .semibold)
    }
    
    static func bold(_ x: CGFloat) -> UIFont {
        UIFont.systemFont(ofSize: x, weight: .bold)
    }
    
    static func heavy(_ x: CGFloat) -> UIFont {
        UIFont.systemFont(ofSize: x, weight: .heavy)
    }
}
